package com.winning.pmph.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 
 * </p>
 *
 * @author lbm
 * @since 2022-02-21
 */
public class IncreaseResource extends Model<IncreaseResource> {

	private static final long serialVersionUID = 1L;

	private String id;

	/**
	 * 资源名称
	 */
	private String name;

	/**
	 * 资源路径
	 */
	private String path;

	/**
	 * 图书ID
	 */
	private String bookId;

	/**
	 * 资源类型 1 图片 2 视频 3 文档 4 资源组
	 */
	private Integer resourceType;

	/**
	 * 资源文件名后缀
	 */
	private String resourceSuffix;

	/**
	 * 父ID
	 */
	private String pid;

	/**
	 * 目录ID
	 */
	private String cateId;

	/**
	 * 资源ID用于子资源查询
	 */
	private String resourceId;

	/**
	 * 是否是附属资源1是 0不是 默认为0
	 */
	private Integer isSub;

	/**
	 * 资源原名称
	 */
	private String fileName;

	/**
	 * 注释
	 */
	private String imgNote;

	/**
	 * 资源封面
	 */
	private String imgPath;

	private String audioPath;
	
	private String audioName;
	
	private String sdVideoPath;

	/**
	 * 排序字段
	 */
	private Integer sortNum;

	private Integer pptPages;
	
    private String hdSize;
    
    private String sdSize;

	private Date createTime;

	private Date updateTime;

	private String createBy;

	private String updateBy;
	
	@TableField(exist = false)
	private List<IncreaseResourceSub> subList;
	
    private String hdM3u8Path;
    
    private String sdM3u8Path;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getBookId() {
		return bookId;
	}

	public void setBookId(String bookId) {
		this.bookId = bookId;
	}

	public Integer getResourceType() {
		return resourceType;
	}

	public void setResourceType(Integer resourceType) {
		this.resourceType = resourceType;
	}

	public String getResourceSuffix() {
		return resourceSuffix;
	}

	public void setResourceSuffix(String resourceSuffix) {
		this.resourceSuffix = resourceSuffix;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getCateId() {
		return cateId;
	}

	public void setCateId(String cateId) {
		this.cateId = cateId;
	}

	public String getResourceId() {
		return resourceId;
	}

	public void setResourceId(String resourceId) {
		this.resourceId = resourceId;
	}

	public Integer getIsSub() {
		return isSub;
	}

	public void setIsSub(Integer isSub) {
		this.isSub = isSub;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getImgNote() {
		return imgNote;
	}

	public void setImgNote(String imgNote) {
		this.imgNote = imgNote;
	}

	public String getImgPath() {
		return imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	public Integer getSortNum() {
		return sortNum;
	}

	public void setSortNum(Integer sortNum) {
		this.sortNum = sortNum;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "IncreaseResource{" + "id=" + id + ", name=" + name + ", path=" + path + ", bookId=" + bookId
				+ ", resourceType=" + resourceType + ", resourceSuffix=" + resourceSuffix + ", pid=" + pid + ", cateId="
				+ cateId + ", resourceId=" + resourceId + ", isSub=" + isSub + ", fileName=" + fileName + ", imgNote="
				+ imgNote + ", imgPath=" + imgPath + ", sortNum=" + sortNum + ", createTime=" + createTime
				+ ", updateTime=" + updateTime + ", createBy=" + createBy + ", updateBy=" + updateBy + "}";
	}

	public String getAudioPath() {
		return audioPath;
	}

	public void setAudioPath(String audioPath) {
		this.audioPath = audioPath;
	}

	public Integer getPptPages() {
		return pptPages;
	}

	public void setPptPages(Integer pptPages) {
		this.pptPages = pptPages;
	}

	public String getHdSize() {
		return hdSize;
	}

	public void setHdSize(String hdSize) {
		this.hdSize = hdSize;
	}

	public String getSdSize() {
		return sdSize;
	}

	public void setSdSize(String sdSize) {
		this.sdSize = sdSize;
	}

	public String getSdVideoPath() {
		return sdVideoPath;
	}

	public void setSdVideoPath(String sdVideoPath) {
		this.sdVideoPath = sdVideoPath;
	}

	public String getAudioName() {
		return audioName;
	}

	public void setAudioName(String audioName) {
		this.audioName = audioName;
	}

	public List<IncreaseResourceSub> getSubList() {
		return subList;
	}

	public void setSubList(List<IncreaseResourceSub> subList) {
		this.subList = subList;
	}

	public String getHdM3u8Path() {
		return hdM3u8Path;
	}

	public void setHdM3u8Path(String hdM3u8Path) {
		this.hdM3u8Path = hdM3u8Path;
	}

	public String getSdM3u8Path() {
		return sdM3u8Path;
	}

	public void setSdM3u8Path(String sdM3u8Path) {
		this.sdM3u8Path = sdM3u8Path;
	}
}
